package com.cskaoyan.service.back;

import com.cskaoyan.bean.bo.RoleDeleteBO;
import com.cskaoyan.bean.po.BasePageInfo;
import com.cskaoyan.bean.po.CommonData;
import com.cskaoyan.bean.po.InfoData;
import com.cskaoyan.bean.po.MarketRole;
import com.cskaoyan.bean.vo.back.AdminRolePermissionsVo;
import com.cskaoyan.bean.vo.back.RoleCreateVO;
import com.cskaoyan.bean.vo.back.RoleOptionsVO;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 12-江涛
 * @since 2022/10/12  19:24
 */
public interface RoleService {
    CommonData<RoleOptionsVO> roleOptions();

    CommonData getRoleList(BasePageInfo basePageInfo, String name);

    RoleCreateVO CreateRole(String name, String desc);

    int DeleteRole(RoleDeleteBO roleDeleteBO);

    int UpadateRole(MarketRole marketRole);


    AdminRolePermissionsVo getRolePermission(Integer roleId);

    String getRoleName(Integer roleId);

    List<String> getRolePermissionByRoleId(Integer roleId);

    InfoData queryRoleInfo();

}
